#!/usr/bin/env python
# encoding: utf-8

import os
basedir = os.path.abspath(os.path.dirname(__file__))

DEBUG = False

SECRET = 'my secretsss key'

TEMPLATES_AUTO_RELOAD = True

MQTT_BROKER_URL = 'localhost'
MQTT_BROKER_PORT = 1883
MQTT_USERNAME = ''
MQTT_PASSWORD = ''
MQTT_KEEPALIVE = 60
MQTT_TLS_ENABLED = False

SERIAL_TIMEOUT = 0.1# make sure that the alive event can be checked from time to time
SERIAL_PORT = 'COM1'
SERIAL_BAUDRATE = 115200
SERIAL_BYTESIZE = 8
SERIAL_PARITY   = 'N'
SERIAL_STOPBITS = 1

SQLALCHEMY_DATABASE_URI = 'sqlite:///%s/test.db'%basedir
